/**
 * @author gaopeng
 * @date 2019/12/19 9:43 下午
 */
public class OpenState extends IState {

    @Override
    public void open() {
        System.out.println("门打开了。");
    }

    @Override
    public void close() {
        super.context.setState(Context.CLOSE_STATE);
        super.context.getState().close();
    }

    @Override
    public void run() {

    }

    @Override
    public void stop() {

    }
}
